// 图标
.is-focused {
  .uniui-eye-filled,
  .content-clear-icon {
    color: var(--primary) !important;
  }
}

.data-picker {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;

  .picker {
    width: 175px;

    .placeholder {
      text-align: right;
      display: inline-block;
      color: var(--placeholder-color);
      font-size: 15px;
    }

    .input-value {
      padding-right: 0;
    }

    .input-split-line {
      padding: 0 5px;
    }

    .uni-data-tree-input {
      .uni-scroll-view-content {
        .selected-list {
          display: flex;
          justify-content: flex-end;
        }
      }
    }

    .selected-item-active {
      border-bottom-color: var(--primary);
    }

    .check {
      border-color: var(--primary);
    }
  }
}

.right-input,
.left-input,
.search-input,
.search-right-input {
  .content-clear-icon,
  .uni-date__icon-clear {
    padding-right: 0px !important;
  }

  .uniui-clear:before {
    color: rgb(198, 199, 203);
    font-size: 22px;
  }

  .uni-input-placeholder {
    text-align: right;
    color: var(--placeholder-color) !important;
    font-size: 15px !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .uni-input-input {
    text-align: right;
    color: var(--primary-text-value);
  }

  .is-disabled .uni-easyinput__placeholder-class {
    color: var(--placeholder-color);
    font-size: 15px;
  }
}

.left-input {
  .uni-input-placeholder {
    text-align: left;
  }

  .uni-input-input {
    text-align: left;
  }
}

.search-right-input,
.search-input {
  max-height: 24px !important;

  .uni-easyinput__content-input {
    height: 24px !important;
  }
}

.search-input {
  .uni-input-placeholder {
    justify-content: flex-start;
  }

  .uni-input-input {
    text-align: left;
  }

  .uni-easyinput__content-input {
    height: 25px;
  }
}

// 查询条件下有多选时
.multiple-search-input {
  .uni-input-placeholder {
    justify-content: flex-end;
  }
  .uni-input-input {
    text-align: right !important;
  }
}

// 时间选择器
.data-box,
.daterange-data-box,
.datetimerange-date-box {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;

  .date {
    width: 175px;

    .uni-date-x {
      .icon-calendar {
        display: none;
      }

      .uni-date__x-input {
        color: var(--placeholder-color);
        text-align: right;
      }
    }
  }

  .uni-date-single--x {
    right: 0;
  }

  .uni-popper__arrow {
    left: 80%;
  }

  .uni-date__icon-clear {
    padding-right: 0px !important;
  }

  .uni-date-editor--x__disabled {
    opacity: 1 !important;
  }

  .uni-calendar-item--checked {
    background-color: var(--primary-text-value) !important;
  }

  .uni-calendar-item--today {
    background-color: var(--error);
  }

  .confirm-text {
    color: var(--primary-text-value) !important;
  }
}

// 时间范围选择器
.daterange-data-box,
.datetimerange-date-box {
  .date {
    width: 260px;

    .range-separator {
      padding-left: 5px !important;
    }

    .uni-date__x-input {
      text-align: center !important;
    }

    .uni-calendar-item--before-checked,
    .uni-calendar-item--after-checked {
      background-color: var(--primary) !important;
    }

    .uni-datetime-picker--btn {
      background-color: var(--primary-text-value) !important;
    }
  }
}

.datetimerange-date-box {
  .date {
    width: 310px;
  }
}

.right-daterange,
.right-date,
.left-date {
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;

  &-box {
    width: 200px;

    .icon-calendar {
      display: none;
    }

    .uni-date__x-input {
      text-align: center;
      color: var(--placeholder-color);
    }
  }
}

.left-date {
  .icon-calendar {
    display: none;
  }
}

.right-date {
  &-box {
    .uni-date__x-input {
      text-align: right;
    }
  }
}

.have-value {
  .uni-date__x-input,
  .uni-date__x-input {
    color: var(--primary-text-value) !important;
  }
}

//--------------------- 表单
.uni-forms-item {
  padding: 5px 10px;
  border-bottom: var(--primary-plain-line);
  margin-bottom: 0 !important;
  .icon-dianji {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-plain);
    color: var(--primary);
  }

  .uni-forms-item__content {
    display: flex !important;
    align-items: center;
    flex-direction: column !important;
  }

  .uni-forms-item__error {
    position: initial !important;
    width: 100%;
    text-align: right;
  }
}
.uni-forms-item__label {
  color: var(--primary-text-value) !important;
}

.input-car-box {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: flex-end;

  > view {
    width: 115px;
    display: flex;
    align-items: center;

    .num-input {
      .uni-easyinput__content-input {
        padding-left: 0px !important;
      }
    }
  }
}

// ---------------------------------下拉刷新

.uni-scroll-view-refresh__spinner {
  circle {
    color: var(--primary) !important;
  }

  svg {
    fill: var(--primary) !important;
  }
}

.uni-scroll-view-refresh__icon {
  color: var(--primary) !important;
  fill: var(--primary) !important;
}

// -------------------------- 下拉选择
.form-data-select {
  .uni-select {
    border: none !important;
    padding-right: 0px;
  }

  .uni-popper__arrow {
    left: 80%;
  }

  .uniui-clear {
    font-size: 22px !important;
  }

  .uni-select__input-text {
    color: var(--primary-text-value) !important;
    text-align: right;
  }

  .uni-select__input-placeholder {
    text-align: right;
    color: var(--placeholder-color) !important;
    font-size: 15px !important;
    margin-right: 10px;
  }

  .uni-select--disabled {
    background-color: $fff !important;
  }
}
